package com.day46.mapper;

import com.day46.pojo.TUsers;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/5/13 21:25
 * @Version 1.0
 */
public interface UserMapper {
    //简单查询
    List<TUsers> findUser();
    //根据id查询用户
    TUsers findById(Integer id);
    //使用注解查询
    List<TUsers> findUserById(@Param("id")Integer id);
    //主键回填插入数据
    void insertUser(TUsers user);

}
